#include <REGX52.H>
#include "Delay.h"
#include "LCD1602.h"
#include "MatrixKey.h"

unsigned char KeyNum;

// 1602显示按下了那个矩阵键

void main(){
	
	LCD_Init();
	LCD_ShowString(1,1,"MaterixKey:"); 
	while(1) {
		KeyNum = MatrixKey();
		if (KeyNum) {
			LCD_ShowNum(2,1,KeyNum,2);
		}
	}
	
}